﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHGFramework.Interface
{
    public interface ICache<T> where T : class
    {
        IEnumerable<T> Gets(string key);
        T Get(string key);
        bool Sets(string key, IEnumerable<T> value, TimeSpan expiresIn);
        bool Set(string key, T value, TimeSpan expiresIn);
        bool Remove(string key);
    }
}
